import request from '@/utils/request'

// 注册接口
export const AxiosRegister = data => {
  return request({
    url: '/h5/user/register',
    method: 'post',
    data
  })
}

// 登录接口
export const AxiosLogin = data => {
  return request({
    url: '/h5/user/login',
    method: 'post',
    data
  })
}

// 获取列表接口

export const AxioscellList = data => {
  return request({
    url: '/h5/interview/query',
    data
  })
}

// 单独页面渲染接口

export const Axiosdateai = params => {
  return request({
    url: '/h5/interview/show',
    params
  })
}

export const AxiosLikeCollect = data => {
  return request({
    url: '/h5/interview/opt',
    data,
    method: 'post'
  })
}

// 点赞

export const AxiosQuit = () => {
  return request({
    url: '/h5/user/logout'
  })
}

// 获取点赞收藏记录

export const AxiosrecordLikeCollect = params => {
  return request({
    url: '/h5/interview/opt/list',
    params
  })
}
